import Mock from 'mockjs'
const { Random } = Mock
import { getRandomDateTime, getNowDate, getFeatureDate } from '../../../utils'
export const departList: any[] = [
  {
    id: 1,
    parentId: 0,
    name: '总公司',
    leaderUserId: 1,
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 2,
    parentId: 1,
    name: '分公司一',
    leaderUserId: 2,
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 3,
    parentId: 1,
    name: '分公司二',
    leaderUserId: 3,
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 4,
    parentId: 1,
    name: '分公司三',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 3,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 5,
    parentId: 2,
    name: '销售部',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 6,
    parentId: 2,
    name: '技术部',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 7,
    parentId: 2,
    name: '推广部',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 3,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 8,
    parentId: 2,
    name: '运维组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 4,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 9,
    parentId: 5,
    name: '销售一组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 10,
    parentId: 5,
    name: '销售二组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 11,
    parentId: 5,
    name: '销售三组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 3,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 12,
    parentId: 6,
    name: '前端组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 13,
    parentId: 6,
    name: '程序组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 14,
    parentId: 7,
    name: '推广一组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 15,
    parentId: 7,
    name: '推广二组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 16,
    parentId: 3,
    name: '销售部',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 17,
    parentId: 3,
    name: '研发部',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 18,
    parentId: 3,
    name: '生产部',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 3,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 19,
    parentId: 16,
    name: '销售一组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 20,
    parentId: 16,
    name: '销售二组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 21,
    parentId: 16,
    name: '销售三组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 3,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 22,
    parentId: 17,
    name: '研发一组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 23,
    parentId: 17,
    name: '研发二组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 24,
    parentId: 18,
    name: '生产一组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 25,
    parentId: 18,
    name: '生产二组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 26,
    parentId: 4,
    name: '销售部',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 27,
    parentId: 4,
    name: '开发部',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 28,
    parentId: 4,
    name: 'QA测试部',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 3,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 36,
    parentId: 4,
    name: '实施部',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 4,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 29,
    parentId: 26,
    name: '销售一组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 30,
    parentId: 26,
    name: '销售二组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 31,
    parentId: 26,
    name: '销售三组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 3,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 32,
    parentId: 27,
    name: '开发一组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 33,
    parentId: 27,
    name: '开发二组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 34,
    parentId: 28,
    name: '测试一组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 35,
    parentId: 28,
    name: '测试二组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 37,
    parentId: 36,
    name: '实施一组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 1,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  },
  {
    id: 38,
    parentId: 36,
    name: '实施二组',
    leaderUserId: Mock.mock('@natural(4, 100)'),
    mobile: /1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}/,
    email: Random.email(),
    sort: 2,
    status: 0,
    remark: '',
    creator: '1',
    create_time: getRandomDateTime(getFeatureDate(-10), getNowDate()),
    updater: '',
    update_time: '',
    deleted: false,
    deleted_time: ''
  }
]
